Multiple duration fields for better elasticseach storage for controllermanager #32486
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Why is it important?
Due to the new fields introduced in controllermanager metricset in #32037
kubernetes.controllermanager.client.request.duration.sec.bucket.*
kubernetes.controllermanager.workqueue.work.duration.sec.bucket.*
there was a bug created.
Because of the histogram buckets of
client.request.duration.sec
the following fields where created.The problem is that the field
0.128
is stored in elasticsearch encapsulated likewhich then leads to the elastic package marking the
client.request.duration.sec.bucket.0.128
as undefined.For this reason the buckets are multiplied by 10^6 to be converted from seconds to microseconds , so that the field will be an integer.
Also the field
kubernetes.controllermanager.workqueue.work.duration.sec.bucket.*
will be deleted and reconsidered in the next release as the fields created likekubernetes.controllermanager.workqueue.work.duration.sec.bucket.0.000009999999999999999
cannot be meaningfully multiplied yet to become integers.Dashboard is also updated.